aboutsummaryrefslogtreecommitdiff
path: root/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.backends.wasm.WasmCodeGenDefineFunctionTests]/[method:freeVariablesAreStoredInAndLoadedFromEnvironment(org.shedlang.compile...
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2023-10-08 11:39:52 +0100
committerMichael Williamson <mike@zwobble.org>2023-10-08 11:39:52 +0100
commitcea0bc0d3bfe54a799bbbcd491e3221aa7103aa4 (patch)
treea628073c21be565887f21e0ba5cb6769e09cd405 /snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.backends.wasm.WasmCodeGenDefineFunctionTests]/[method:freeVariablesAreStoredInAndLoadedFromEnvironment(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected
parentb0a288f03774d3df6f4502af7748a52012e05029 (diff)
Tidy up snapshots
Diffstat (limited to 'snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.backends.wasm.WasmCodeGenDefineFunctionTests]/[method:freeVariablesAreStoredInAndLoadedFromEnvironment(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected')
-rw-r--r--snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.backends.wasm.WasmCodeGenDefineFunctionTests]/[method:freeVariablesAreStoredInAndLoadedFromEnvironment(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected75
1 files changed, 0 insertions, 75 deletions
diff --git a/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.backends.wasm.WasmCodeGenDefineFunctionTests]/[method:freeVariablesAreStoredInAndLoadedFromEnvironment(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected b/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.backends.wasm.WasmCodeGenDefineFunctionTests]/[method:freeVariablesAreStoredInAndLoadedFromEnvironment(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected
deleted file mode 100644
index ec34c83b..00000000
--- a/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.backends.wasm.WasmCodeGenDefineFunctionTests]/[method:freeVariablesAreStoredInAndLoadedFromEnvironment(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected
+++ /dev/null
@@ -1,75 +0,0 @@
-
-module.wasm: file format wasm 0x1
-
-Section Details:
-
-Type[2]:
- - type[0] (i32) -> i32
- - type[1] () -> nil
-Import[3]:
- - table[0] type=funcref initial=0 <- env.__indirect_function_table
- - func[0] sig=0 <shed__runtime__alloc> <- env.shed__runtime__alloc
- - memory[0] pages: initial=0 <- env.__linear_memory
-Function[2]:
- - func[1] sig=0 <shed__function__f__0>
- - func[2] sig=1 <f>
-Code[2]:
- - func[1] size=23 <shed__function__f__0>
- - func[2] size=47 <f>
-Custom:
- - name: "linking"
- - symbol table [count=3]
- - 0: F <shed__runtime__alloc> func=0 [ undefined explicit_name binding=global vis=default ]
- - 1: F <shed__function__f__0> func=1 [ binding=global vis=default ]
- - 2: F <f> func=2 [ binding=global vis=default ]
-Custom:
- - name: "reloc.CODE"
- - relocations for section: 3 (Code) [2]
- - R_WASM_FUNCTION_INDEX_LEB offset=0x00002e(file=0x0000af) symbol=0 <shed__runtime__alloc>
- - R_WASM_TABLE_INDEX_SLEB offset=0x000038(file=0x0000b9) symbol=1 <shed__function__f__0>
-Custom:
- - name: "name"
- - func[0] <shed__runtime__alloc>
- - func[1] <shed__function__f__0>
- - func[2] <f>
- - func[1] local[0] <closurePointer__0>
- - func[1] local[1] <local__a__0>
- - func[1] local[2] <local__b__0>
- - func[2] local[0] <local__b__0>
- - func[2] local[1] <local__c__0>
- - func[2] local[2] <local__a__0>
- - func[2] local[3] <closurePointer__0>
-
-Code Disassembly:
-
-000087 func[1] <shed__function__f__0>:
- 000088: 01 7f | local[0] type=i32
- 00008a: 01 7f | local[1] type=i32
- 00008c: 20 00 | local.get 0 <closurePointer__0>
- 00008e: 28 02 04 | i32.load 2 4
- 000091: 21 01 | local.set 1 <local__a__0>
- 000093: 20 00 | local.get 0 <closurePointer__0>
- 000095: 28 02 08 | i32.load 2 8
- 000098: 21 02 | local.set 2 <local__b__0>
- 00009a: 20 01 | local.get 1 <local__a__0>
- 00009c: 0f | return
- 00009d: 0b | end
-0000a3 func[2] <f>:
- 0000a4: 01 7f | local[0] type=i32
- 0000a6: 01 7f | local[1] type=i32
- 0000a8: 01 7f | local[2] type=i32
- 0000aa: 01 7f | local[3] type=i32
- 0000ac: 41 0c | i32.const 12
- 0000ae: 10 80 80 80 80 00 | call 0 <shed__runtime__alloc>
- 0000b4: 21 03 | local.set 3 <closurePointer__0>
- 0000b6: 20 03 | local.get 3 <closurePointer__0>
- 0000b8: 41 80 80 80 80 00 | i32.const 0
- 0000be: 36 02 00 | i32.store 2 0
- 0000c1: 20 03 | local.get 3 <closurePointer__0>
- 0000c3: 20 02 | local.get 2 <local__a__0>
- 0000c5: 36 02 04 | i32.store 2 4
- 0000c8: 20 03 | local.get 3 <closurePointer__0>
- 0000ca: 20 00 | local.get 0 <local__b__0>
- 0000cc: 36 02 08 | i32.store 2 8
- 0000cf: 20 03 | local.get 3 <closurePointer__0>
- 0000d1: 0b | end \ No newline at end of file